//
//  Cvc.m
//  全屏pop导航控制器
//
//  Created by MyMac on 15/8/13.
//  Copyright (c) 2015年 MyMac. All rights reserved.
//

#import "Cvc.h"
#import "Dvc.h"
@implementation Cvc
-(void)viewDidLoad
{
     [super viewDidLoad];
    self.view.backgroundColor   =[UIColor yellowColor];
    UIButton*btn=[[UIButton alloc]initWithFrame:CGRectMake(100, 100, 100, 50)];
    btn.backgroundColor=[UIColor lightGrayColor];
    [btn addTarget:self action:@selector(pushClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
    
}
-(void)pushClick
{
    Dvc*c=[[Dvc alloc]init];
    [self.navigationController pushViewController:c animated:YES];
    
    
    
}
@end
